package com.example.springbootshiro.entity.base;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: lex
 * @Date: 2018/10/26
 */
@Data
public class BaseEntity<T extends Model> extends Model<T> implements Serializable {

    @TableId
    private Long id;

    @Override
    protected Serializable pkVal() {
        return id;
    }

    //@TableLogic
    private Short isDelete=0;


}
